package com.primeton.whdc.ccms.reportimpl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.primeton.whdc.ccms.reportimpl.entity.CallRecord;
import com.primeton.whdc.ccms.reportimpl.param.ApiVO;
import com.primeton.whdc.ccms.reportimpl.param.ReportRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CallRecordMapper extends BaseMapper<CallRecord> {
    List<ApiVO> selectApiInfoByPath(@Param("path") String path, @Param("method") String method);

    List<ApiVO> selectApiInfoREGEXPPath(@Param("method") String method, @Param("regbegin") String regbegin, @Param("regend") String regend);

    List<ApiVO> selectApiInfos();

    List<ReportRecordVO> selectMonthReportInfos(@Param("empCode") String empCode, @Param("deptCode") String deptCode, @Param("yrmonth") String yrmonth);

    List<ReportRecordVO> selectWeekReportInfos(@Param("empCode") String empCode, @Param("deptCode") String deptCode, @Param("weekday") String weekday);

}
